﻿using Microsoft.SharePoint.Administration;

namespace SharePoint.Contrib.Extensions
{
    /// <summary>
    /// Extensions for the SPWebConfigModification class
    /// </summary>
    public static class SPWebConfigModificationExtensions
    {
        /// <summary>
        /// Returns a string representation of the SPWebConfigModification that shows the name and the value
        /// </summary>
        public static string Info(this SPWebConfigModification instance)
        {
            return string.Format("Name: {0} - Value: {1} - Type: {2}",
                            instance.Name,
                            instance.Value,
                            instance.Type);
                
        }
    }
}
